package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.SiteMessages;
import com.example.mall.dto.SiteMessagesDto;
import com.example.mall.query.PageDTO;
import com.example.mall.query.SiteMessagesQuery;

import java.util.List;


/**
 * <p>
 * 站内消息表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
public interface ISiteMessagesService extends IService<SiteMessages> {

    //分页查询
    PageDTO<SiteMessagesDto> queryPage(SiteMessagesQuery siteMessagesQuery);

    //根据id查询
    SiteMessages querySiteMessagesById(Long messageId);

    //查询所有
    List<SiteMessages> querySiteMessagesList();

    //新增
    void insert(SiteMessagesDto siteMessagesDto);

    //修改
    void update(SiteMessagesDto siteMessagesDto);

    //删除
    void delete(Long messageId);

    //批量删除
    void deleteBatch(List<Long> messageIds);
}
